package com.cassiopae.entity;

import java.io.Serializable;
import java.util.Date;

public class Report implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private int id;
	private String result;
	private String query_customer;
	private Date date;
	
	public Report() {
		this.id = -1;
		this.result = "";
		this.query_customer = "";
		this.date = new Date();
	}

	public Report(int id, String result, String query_customer, Date date) {
		this.id = id;
		this.result = result;
		this.query_customer = query_customer;
		this.date = date;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getQuery_customer() {
		return query_customer;
	}

	public void setQuery_customer(String query_customer) {
		this.query_customer = query_customer;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@Override
	public String toString() {
		return "Report [id=" + id + ", result=" + result + ", query_customer="
				+ query_customer + ", date=" + date + "]";
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Report other = (Report) obj;
		if (date == null) {
			if (other.date != null)
				return false;
		} else if (!date.equals(other.date))
			return false;
		if (id != other.id)
			return false;
		if (query_customer == null) {
			if (other.query_customer != null)
				return false;
		} else if (!query_customer.equals(other.query_customer))
			return false;
		if (result == null) {
			if (other.result != null)
				return false;
		} else if (!result.equals(other.result))
			return false;
		return true;
	}
	
	
	
	

}
